#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
struct S
{
	int arr[10000];
	int n;
	double d;
};
void print1(struct S tmp)
{
	int i = 0;
	for (i = 0; i < 5; i++)
	{
		printf("%d ", tmp.arr[i]);
	}
	printf("%d ", tmp.n);
	printf("%lf\n", tmp.d);
}
void print2(const struct S* ps)
{
	int i = 0;
	for (i = 0; i < 5; i++)
	{
		printf("%d ", ps->arr[i]);
	}
	printf("%d ", ps->n);
	printf("%lf\n", ps->d);
}
int main()
{
	struct S s = { {1,2,3,4,5},100,3.14 };
	//print1(s);
	print2(&s);

	return 0;
}